import request from '@/utils/request'

// 金币订单-分页版本
export function queryOrderCoinList(data) {
  return request({
    url: `/order/coin/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// VIP订单-分页版本
export function queryOrderVipList(data) {
  return request({
    url: `/order/vip/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 手动回传
export function handMovementOrder(data) {
  return request({
    url: '/order/manual/report',
    method: 'post',
    data: data
  })
}

// 退款
export function orderRefund(data) {
  return request({
    url: '/order/refund',
    method: 'post',
    data: data
  })
}

// 用户补金币-列表
export function orderGiftCoinList(data) {
  return request({
    url: `/order/gift/coin/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 用户补金币-新增
export function orderGiftCoinAdd(data) {
  return request({
    url: '/order/gift/coin',
    method: 'post',
    data: data
  })
}

// 用户补会员-列表
export function orderGiftVipList(data) {
  return request({
    url: `/order/gift/vip/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 用户补会员-列表
export function orderGiftVipAdd(data) {
  return request({
    url: '/order/gift/vip',
    method: 'post',
    data: data
  })
}
